package _2ChapterTwo.IntroduceLocalExtension;

import java.util.Date;

//以子类化的方式实现本地扩展
public class MfDateSub extends Date {
    public MfDateSub(Date date) {
        super(date.getTime());
    }

    public MfDateSub() {
    }

    public Date nextDate() {
        return new Date(getTime() + 86400000);
    }
}
